if (SERVER) then

	AddCSLuaFile( "shared.lua" )
	SWEP.Weight				= 4
	SWEP.AutoSwitchTo		= false
	SWEP.AutoSwitchFrom		= false
	SWEP.HoldType			= "pistol"
	
	function SWEP:Deploy()
		self.Owner:DrawViewModel( false )
	end

end

if ( CLIENT ) then

	SWEP.DrawAmmo			= false
	SWEP.DrawCrosshair		= false
	SWEP.ViewModelFOV		= 2
	SWEP.ViewModelFlip		= false
	SWEP.CSMuzzleFlashes	= false
	
	SWEP.IconFont = "CSSelectIcons"
	
	SWEP.PrintName = "Camera"
	SWEP.Slot = 1
	SWEP.Slotpos = 1
	SWEP.IconLetter = "g"

end

 SWEP.Base				= "pf_base"

 SWEP.Spawnable = true;
 SWEP.AdminSpawnable = true;

 SWEP.ViewModel			= "models/weapons/v_pistol.mdl"
 SWEP.WorldModel = "models/weapons/w_camphone.mdl"

 SWEP.Primary.Sound			= Sound( "weapons/pistol/pistol_fire3.wav" )
 SWEP.Primary.Recoil			= 0
 SWEP.Primary.Damage			= 13
 SWEP.Primary.NumShots		      = 0
 SWEP.Primary.Cone			= 0.023
 SWEP.Primary.ClipSize              = -1
 SWEP.Primary.Delay			= 0.25
 SWEP.Primary.DefaultClip           = 99999
 SWEP.Primary.Automatic             = false
 SWEP.Primary.Ammo                  = "smg1"

 SWEP.Secondary.Clipsize            = -1;
 SWEP.Secondary.DefaultClip         = -1;
 SWEP.Secondary.Automatic           = false
 SWEP.Secondary.Ammo                = "none"; 
 SWEP.Secondary.Delay			= 4
 
function SWEP:PrimaryAttack()	
	if (CLIENT) then
	self.Owner:ConCommand( "jpeg" )
	self.Weapon:EmitSound(Sound("NPC_CScanner.TakePhoto"))
	end
end

function SWEP:HUDShouldDraw( name )
	// So we can change weapons
	if (name == "CHudWeaponSelection") then return true end
	return false;
end

